package com.funquer.cms.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-22
 * Time: 下午5:33
 * To change this template use File | Settings | File Templates.
 */
@javax.persistence.Table(name = "feedback", schema = "", catalog = "funquer")
@Entity
public class FeedbackEntity {
    private String id;

    @javax.persistence.Column(name = "id")
    @Id
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private String aid;

    @javax.persistence.Column(name = "aid")
    @Basic
    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    private String arctype;

    @javax.persistence.Column(name = "arctype")
    @Basic
    public String getArctype() {
        return arctype;
    }

    public void setArctype(String arctype) {
        this.arctype = arctype;
    }

    private String username;

    @javax.persistence.Column(name = "username")
    @Basic
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    private String arctitle;

    @javax.persistence.Column(name = "arctitle")
    @Basic
    public String getArctitle() {
        return arctitle;
    }

    public void setArctitle(String arctitle) {
        this.arctitle = arctitle;
    }

    private String ip;

    @javax.persistence.Column(name = "ip")
    @Basic
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    private Timestamp posttime;

    @javax.persistence.Column(name = "posttime")
    @Basic
    public Timestamp getPosttime() {
        return posttime;
    }

    public void setPosttime(Timestamp posttime) {
        this.posttime = posttime;
    }

    private String msg;

    @javax.persistence.Column(name = "msg")
    @Basic
    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    private int isAnonymity;

    @javax.persistence.Column(name = "is_anonymity")
    @Basic
    public int getAnonymity() {
        return isAnonymity;
    }

    public void setAnonymity(int anonymity) {
        isAnonymity = anonymity;
    }

    private int manner;

    @javax.persistence.Column(name = "manner")
    @Basic
    public int getManner() {
        return manner;
    }

    public void setManner(int manner) {
        this.manner = manner;
    }

    private int isquote;

    @javax.persistence.Column(name = "isquote")
    @Basic
    public int getIsquote() {
        return isquote;
    }

    public void setIsquote(int isquote) {
        this.isquote = isquote;
    }

    private String quoteid;

    @javax.persistence.Column(name = "quoteid")
    @Basic
    public String getQuoteid() {
        return quoteid;
    }

    public void setQuoteid(String quoteid) {
        this.quoteid = quoteid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FeedbackEntity that = (FeedbackEntity) o;

        if (isAnonymity != that.isAnonymity) return false;
        if (isquote != that.isquote) return false;
        if (manner != that.manner) return false;
        if (aid != null ? !aid.equals(that.aid) : that.aid != null) return false;
        if (arctitle != null ? !arctitle.equals(that.arctitle) : that.arctitle != null) return false;
        if (arctype != null ? !arctype.equals(that.arctype) : that.arctype != null) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (ip != null ? !ip.equals(that.ip) : that.ip != null) return false;
        if (msg != null ? !msg.equals(that.msg) : that.msg != null) return false;
        if (posttime != null ? !posttime.equals(that.posttime) : that.posttime != null) return false;
        if (quoteid != null ? !quoteid.equals(that.quoteid) : that.quoteid != null) return false;
        if (username != null ? !username.equals(that.username) : that.username != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (aid != null ? aid.hashCode() : 0);
        result = 31 * result + (arctype != null ? arctype.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        result = 31 * result + (arctitle != null ? arctitle.hashCode() : 0);
        result = 31 * result + (ip != null ? ip.hashCode() : 0);
        result = 31 * result + (posttime != null ? posttime.hashCode() : 0);
        result = 31 * result + (msg != null ? msg.hashCode() : 0);
        result = 31 * result + isAnonymity;
        result = 31 * result + manner;
        result = 31 * result + isquote;
        result = 31 * result + (quoteid != null ? quoteid.hashCode() : 0);
        return result;
    }
}
